@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default" style="text-align: center">
                <div class="panel-heading">请微信扫描二维码访问小程序</div>
                <div class="panel-body">
                    <img src="{{asset('img/qr.jpg')}}">
                </div>
                <a href="{{url('logout')}}"><div class="panel-heading" onclick="event.preventDefault();  document.getElementById('logout-form').submit();">退出登陆</div></a>
                <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
